<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>My first three.js app</title>
  <style>
    body { margin: 0; }
  </style>
</head>
<body>
<script src="http://www.yanhuangxueyuan.com/3D/example/three.min.js"></script>
<script src="OBJLoader.js"></script>
<script>

  // instantiate a loader
  const loader = new OBJLoader();

  // load a resource
  loader.load(
    // resource URL
    'D:/项目开发/3d/1层陶瓷博物馆.obj',
    // called when resource is loaded
    function ( object ) {

      scene.add( object );

    },
    // called when loading is in progresses
    function ( xhr ) {

      console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' );

    },
    // called when loading has errors
    function ( error ) {

      console.log( 'An error happened' );

    }
  );
</script>
</body>
</html>
